package com.leyou.mall.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.leyou.common.pojo.R;
import com.leyou.mall.mapper.MallColumnMapper;
import com.leyou.mall.service.MallColumnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xhh
 * @since 2022-07-04
 */
@RestController
@RequestMapping("/column")
public class MallColumnController {
    @Autowired
    private MallColumnService mallColumnService;
    @Autowired
    private MallColumnMapper mallColumnMapper;
    @RequestMapping("/columnList")
    public R columnList(){
        QueryWrapper queryWrapper=new QueryWrapper();
        List list = mallColumnMapper.selectList(queryWrapper);
        return R.ok().data("list",list);


    }
}

